<h1>Swarm#list</h1>
<div align="center"><span class="STYLE5"> | <% @catelogs.each do |c|%>
<%=link_to_unless_current c.title,:action=>"list",:id=>c.id%> | 
<%end%>
</span</div>
<br>----------------------------------------
<br>
<br>
<br>
<br>
<br>
<% @swarm.each do |s|%>
<%=link_to_unless (s.public==0,s.title,:controller=>"/swarm",:action=>"show_one",:id=>s.url){|title|title}%>    
|
<%=h s.description %>
|current users:
<%=CommonUtil.getusersbyid(s.id)%>
|
<%=link_to ("delete it!",{:controller=>"/admin/swarm",:action=>"delete",:id=>s.id},:confirm => "Are you sure?", :post => true) %>
<br>
<%end%>
<br>
-------------
<%=pagination_links(@result_pages)%>